<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>福祉之家-后台界面</title>
	<link rel="stylesheet" type="text/css" href="/iframe-assets/css/style.css">
</head>
<body>
	<div class="fzzj-container">
		<header class="header">
			<div class="logo"><img src="/iframe-assets/img/01_01.png"><span>福祉之家</span></div>
            <div class="mark"><img src="/iframe-assets/img/3_03.png"><span><?=$_SESSION['admin']['name']?></span><a href="/admin_admin/edit?id=<?=$_SESSION['admin']['id']?>">修改密码</a><a href="/admin_login/quit">退出登录</a></div>
		</header>
		<main class="main">
		   <div class="list-line">
           <div class="admin"><img src="/iframe-assets/img/3_07.png"><span>welcome<br/><b><?=$_SESSION['admin']['name']?></b></span></div>
		   	 <ol>
            <?if(in_array('28',$_SESSION['admin']['role']) || ($_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2)){?>    
            <li class="Level-header "><img src="/iframe-assets/img/3_11.png"><a href="/admin_senior" target="ifm">老人管理</a><!-- <a href="singsone.html" target="sings">五月天</a>--><span class="arrow"></span></li>
            <?}?>
                    <?if(in_array('28',$_SESSION['admin']['role']) || ($_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2)){?>
                       <ul class="detail-list">
                        <?if(in_array('1',$_SESSION['admin']['role']) || ($_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2)){?>
                        <li><a href="/admin_senior" target="ifm">老人信息</a></li>
                        <?}?>
                        <?if(in_array('7',$_SESSION['admin']['role']) || ($_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2)){?>
                        <li><a href="/admin_eatmedicine" target="ifm">老人用药</a></li>
                        <?}?>
                        <?if(in_array('8',$_SESSION['admin']['role']) || ($_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2)){?>
                        <li><a href="/admin_nurse" target="ifm">日常护理</a></li>
                        <?}?>
                        <?if(in_array('9',$_SESSION['admin']['role']) || ($_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2)){?>
                        <li><a href="/admin_leaved" target="ifm">离院管理</a></li>
                        <?}?>
                       </ul>
                    <?}?>
                    
                <?if(in_array('32',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                <li class="Level-header "><img src="/iframe-assets/img/3_18.png"><a href="/admin_worker" target="ifm">员工管理</a><!-- <a href="singstwo.html" target="sings">薛之谦</a>--><span class="arrow"></span> </li>
                <?}?>
                        <?if(in_array('32',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                       <ul class="detail-list">
                        <?if(in_array('2',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
		   	   	        <li><a href="/admin_worker" target="ifm">员工记录</a></li>
                        <?}?>
                        <?if(in_array('3',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_train" target="ifm">培训记录</a></li>
                        <?}?>
                        <?if(in_array('4',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_leave" target="ifm">请假记录</a></li>
                        <?}?>
                        <?if(in_array('5',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_appraise" target="ifm">考核记录</a></li>
                        <?}?>
                        <?if(in_array('6',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_dimission" target="ifm">离职记录</a></li>
                        <?}?>
                       </ul>
                        <?}?>
                <?if(in_array('29',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                <li class="Level-header "><img src="/iframe-assets/img/peican.png"><a href="/admin_cater" target="ifm">配餐/配货管理</a><!-- <a href="singstwo.html" target="sings">薛之谦</a>--><span class="arrow"></span> </li>
                <?}?>
                        <?if(in_array('29',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                       <ul class="detail-list">
                        <?if(in_array('10',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
		   	   	        <li><a href="/admin_cater" target="ifm">配餐管理</a></li>
                        <?}?>
                        <?if(in_array('15',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_apply/list" target="ifm">配货管理</a></li>
                        <?}?>
                        <?if(in_array('16',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_apply/report" target="ifm">医疗器械</a></li>
                        <?}?>
                       </ul>
                        <?}?>
                    <?if(in_array('30',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                    <li class="Level-header "><img src="/iframe-assets/img/ducha.png"><a href="/admin_overseer" target="ifm">督查管理</a><!-- <a href="singstwo.html" target="sings">薛之谦</a>--><span class="arrow"></span> </li>
                    <?}?>
                    <?if(in_array('30',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
		   	   	       <ul class="detail-list">
                        <?if(in_array('12',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_overseer" target="ifm">部门情况列表</a></li>
                        <?}?>
                       </ul>
                    <?}?>
                    <?if(in_array('34',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                    <li class="Level-header "><img src="/iframe-assets/img/houqin.png"><a href="/admin_purchases" target="ifm">后勤管理</a><!-- <a href="singstwo.html" target="sings">薛之谦</a>--><span class="arrow"></span> </li>
                    <?}?>
                    <?if(in_array('34',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                       <ul class="detail-list">
                        <?if(in_array('20',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_purchases" target="ifm">采购清单</a></li>
                        <?}?>
                        <?if(in_array('21',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_dispatching" target="ifm">配送清单</a></li>
                        <?}?>
                        <?if(in_array('22',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_apparatus" target="ifm">医疗器械</a></li>
                        <?}?>
                   </ul>
                    <?}?>
                    <?if(in_array('33',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                    <li class="Level-header "><img src="/iframe-assets/img/caiwu.png"><a href="/admin_wages" target="ifm">财务管理</a><!-- <a href="singstwo.html" target="sings">薛之谦</a>--><span class="arrow"></span> </li>
                    <?}?>
                    <?if(in_array('33',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
		   	   	       <ul class="detail-list">
                        <?if(in_array('17',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_wages" target="ifm">员工工资</a></li>
                        <?}?>
                        <?if(in_array('18',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_elderlypayment" target="ifm">老人缴费结算</a></li>
                        <?}?>
                        <?if(in_array('19',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_settlement" target="ifm">老人出院结算</a></li>
                        <?}?>
                       </ul>
                    <?}?>
                    <?if(in_array('35',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
		   	   	<li class="Level-header "><img src="/iframe-assets/img/3_23.png"><a href="/admin_medicine" target="ifm">系统设置</a><!-- <a href="singthree.html" target="sings">古巨基</a>--><span class="arrow"></span></li>
                    <?}?>
                    <?if(in_array('35',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                    <ul class="detail-list">
                        <?if(in_array('23',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_medicine" target="ifm">医药库</a></li>
                        <?}?>
                        <?if(in_array('24',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_overall" target="ifm">全局设置</a></li>
                        <?}?>
                        <?if(in_array('25',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_admin" target="ifm">账号管理</a></li>
                        <?}?>
                        <?if(in_array('26',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_permission" target="ifm">角色权限</a></li>
                        <?}?>
                        <?if(in_array('27',$_SESSION['admin']['role']) || $_SESSION['admin']['roles'] == 1 || $_SESSION['admin']['roles'] == 2){?>
                        <li><a href="/admin_departments" target="ifm">分院管理</a></li>
                        <?}?>
                       </ul>
                    <?}?>
		   	 </ol>

		   </div>
		   <div class="middle">
                <?if($_SESSION['admin']['role'] == 5){?>
               <iframe src="/admin_purchases" width:"100%" height:"100%" name="ifm" frameborder="0" scrolling="no" id="ifm"></iframe>
                <?}else if($_SESSION['admin']['role'] == 8){?>
               <iframe src="/admin_overseer" width:"100%" height:"100%" name="ifm" frameborder="0" scrolling="no" id="ifm"></iframe>
                <?}else if($_SESSION['admin']['role'] == 10){?>
               <iframe src="/admin_wages" width:"100%" height:"100%" name="ifm" frameborder="0" scrolling="no" id="ifm"></iframe>
                <?}else{?>
               <iframe src="/admin_senior" width:"100%" height:"100%" name="ifm" frameborder="0" scrolling="no" id="ifm"></iframe>
                <?}?>
		   </div>
	    </main>
	</div>
	<script type="text/javascript" src="/iframe-assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/iframe-assets/js/iframe-jq.js"></script>
</body>
</html>
